package main

import (
	"fmt"
	"os/exec"
)

func main() {
	//
	/*	cmd := exec.Command("./my_ched",
		"-d", "LDN0u/qUZg319eqeDZuDoVIWeFSKDpGPKqFEfQ==",
		"-s", "f421b9d6-f838-11ef-9cb6-12571027c481shdaj",
		" | grep succResult: | awk -F ':' '{print $2}'")*/
	command := "./chedApp -d LDN0u/qUZg319eqeDZuDoVIWeFSKDpGPKqFEfQ== -s f421b9d6-f838-11ef-9cb6-12571027c481shdaj | grep succResult: | awk -F ':' '{print $2}'"
	cmd := exec.Command("bash", "-c", command)
	output, err := cmd.Output()
	if err != nil {
		fmt.Println("执行失败:", err)
		return
	}

	fmt.Println("result:", string(output))
}
